package com.itheima.factory;

import com.itheima.service.UserService;
import com.itheima.service.impl.UserServiceImpl;

public class factory02 {
    public UserService getSercice(){
        System.out.println(" 实例工厂创建bean");
        return new UserServiceImpl();
    }

}
